package com.example.demo.reflectstudy;

/**
 * @Description Reflect02
 * @Author songchuanlong
 * @Date 2025-06-10
 */

import com.example.demo.setstudy.Student;

/**
 * java框架
 */
public class Reflect02 {
    public static void main(String[] args) throws Exception {
        Student student1 = new Student("小明", 18, 176.5);
        Student student2 = new Student("小红", 19, 172.3);
        Teacher teacher1 = new Teacher("张老师", 9999.3);
        //需求：把任意对象的字段名和其对应的值等信息，保存到文件中去。
        JavaFrame.saveContent(student1);
        JavaFrame.saveContent(student2);
        JavaFrame.saveContent(teacher1);
    }
}
